﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
namespace dmm
{
    public class VideoEditSetting
    {

        public Int64 id;
        
        #region edit related member
            public int edit_flag = 0;
            public double trim_start = 0;
            public double trim_end = 0;
            public Rect crop_rect;
        #endregion
    }


    class VideoEditSettings
    {
        static private Dictionary<Int64, VideoEditSetting> dict = new Dictionary<Int64, VideoEditSetting>();

        public static VideoEditSetting add_setting(Int64 id)
        {
            VideoEditSetting s = new VideoEditSetting();
            s.id = id;
            dict.Add(id, s);
            return s;
        }

        public static void remove_setting(Int64 id)
        {
            dict.Remove(id);
        }

        public static VideoEditSetting get_setting(Int64 id)
        {
            VideoEditSetting s = null;
            dict.TryGetValue(id, out s);
            return s;
        }

    }
}
